<div id="main_content">

<ul class="tab-menu border bottom">
    <li id="tiny_show"><?=modul_anchor('modul/user', 'Пользователи');?></li>
    <li id="tiny_hide" class="tab-selected"><?=modul_anchor('modul/user/groups', 'Группы');?></li>
</ul>

<table class="table" cellspacing="0" cellpadding="4" border="0">
    <tr>
        <th width="35px"><?=lang('group_id')?></th>
        <th><?=lang('group_title')?></th>
        <th width="125px"><?=lang('actions')?></th>
    <tr>
    <?php foreach($groups as $row): ?>
    <tr>
        <td><?=$row['id'] ?></td>
        <td><?=$row['title'] ?></td>
        <td>
        <?=modalbox('modul/user/edit_group/'.$row['id'], image('images/icons/gear.png'), lang('group_edite').' - '.$row['title']);?>
        <?=modalbox('modul/user/delete_group/'.$row['id'], image('images/icons/cross.png'), lang('group_delete').' - '.$row['title']);?>
        </td>
    </tr>
    <?php endforeach; ?>
</table>

<?=modalbox('modul/user/add_group', lang('group_create'), lang('group_create'), array('class' => 'add'));?>
</div>